package chainOfResponsibility;

public class Client {

    public static void main(String[] args) {
        LeaveRequest leaveRequest = new LeaveRequest("小明", 2, "身体不适");
        // 创建各级领导对象
        GroupLeader groupLeader = new GroupLeader();
        Manager manager = new Manager();
        GeneralManager generalManager = new GeneralManager();

        groupLeader.setNextHandler(manager);
        manager.setNextHandler(generalManager);

        groupLeader.submit(leaveRequest);

    }
}
